<?php
require_once('bean.php');

class ApprenantBean extends Bean {
	private $idApprenant = 0;
	private $idLangue = 0;
	private $nom = '';

	public function __construct() {
	}

	// Bean getters & setters
	public function getIdApprenant() {
		return $this->idApprenant;
	}

	public function setIdApprenant($id) {
		$this->idApprenant = $id;
	}

	public function getNom() {
		return $this->nom;
	}

	public function setNom($nom) {
		$this->nom = $nom;
	}

	public function getIdLangue() {
		return $this->idLangue;
	}

	public function setIdLangue($idLangue) {
		$this->idLangue = $idLangue;
	}

	// HTML getters
	public static function getHtmlTableHeader() {
		return "<tr><th>Id</th><th>Nom</th><th>Id Langue</th></tr>";
	}

	public function getHtmlTableRow() {
		return "<tr><td>{$this->getIdApprenant()}</td><td>{$this->getNom()}</td><td>{$this->getIdLangue()}</td></tr>";
	}
}
?>
